﻿<%@ Page Language="C#" AutoEventWireup="True" CodeBehind="NodeTypeList.aspx.cs" 
    MasterPageFile="~/Medianamik/MasterPages/MedianamikModule.master"
    Inherits="Medianamik.UI.Web.TypeList.NodeTypeList" %>
<%@ Import Namespace="Telerik.Web.UI"%>

<%@ Register TagName="Medianamik" Src="~/medianamik/list/SimpleGrid.ascx" TagPrefix="uc" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContextMenu" runat="server">
    <asp:UpdatePanel runat="server" UpdateMode="Always">
        <ContentTemplate>
           <asp:HyperLink ID="AddItemButton" runat="server" CssClass="Action BtAjouter" 
                Text="<%$ Resources: TypeList, AddItemButtonText %>" Target="TypeSelectorWindow" />
    </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="CenterContent" runat="server">
    <p class="Titre12pxBordure">
        <asp:Label runat="server" ID="NodeTypesLabel" Text="<%$ Resources: TypeList, Types %>" AssociatedControlID="NodeTypesDropDownList" />
        <asp:DropDownList runat="server" ID="NodeTypesDropDownList" AutoPostBack="true" CssClass="SelectList" />
    </p>
    
    <asp:UpdatePanel ID="FiltersUpdatePanel" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="true">
        <ContentTemplate>  
            <asp:PlaceHolder runat="server" ID="ValueSelectedPlaceHolder">
                <div id="BoiteRecherche">
                    <fieldset>
                        <p class="ControlTailleVariable">
                            <label><%= "ContentNameColumn".Translate("Medianamik_ContentManagement")%></label>
                            <asp:TextBox id="Name" style="width:300px;" runat="server" CssClass="TxtBox"  />
                        </p>
                        <div style="clear:left;"></div>
                    </fieldset>
                    <asp:Button ID="FilterButton" runat="server" CssClass="Btn" Text="<%$ Resources: TypeList, Search %>" />
                </div>
            </asp:PlaceHolder>
        </ContentTemplate>
    </asp:UpdatePanel>   
    <uc:Medianamik runat="server" ID="TypeListGrid" AllowSorting="true" />
 
    <br class="clearer" /> 
</asp:Content>

<asp:Content ID="ExternalContent" ContentPlaceHolderID="ExternalContentHolder" runat="server">
    <telerik:RadScriptBlock runat="server" ID="ScriptBlock">
        <script type="text/javascript">
            //<![CDATA[

            <%= Medianamik.UI.Utility.GetDeleteElementScript(RadAjaxManager.GetCurrent(Page).ClientID,
                Pages.DeleteElementWindow, CurrentEditionCulture.Name, 
                false, CurrentEditionCulture.Name == "") %>

            <%= Medianamik.UI.Utility.GetTypeSelectedScript(EditPageUrl, false, 
                DefaultParamNames.ParentNodeID, DefaultParamNames.TypeID, BuildReturnUrl()) %>
                
            //]]>
        </script>
    </telerik:RadScriptBlock>
</asp:Content>
